# coding:utf-8

from flask import Flask, render_template, request, redirect, url_for

app = Flask(__name__)


@app.route('/dir', methods=['POST', 'GET'])
def dir():
    if request.method == 'POST':
        print(request.form)
        return redirect(url_for('dir'))
    return render_template('dir.html')


if __name__ == '__main__':
    app.run('0.0.0.0', debug=True)


